//
//  SEPrescriptionPickDiagnosisListCell.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/5/11.
//

import UIKit

class SEPrescriptionPickDiagnosisListCell: UITableViewCell {
    
    override func setHighlighted(_ highlighted: Bool, animated: Bool) {
        super.setHighlighted(highlighted, animated: animated)
        nameLabel.textColor = highlighted ? Asset.main.color : Asset.textDark.color
    }

    func update(with viewModel: SEPrescriptionDiagnosisPickViewModel) {
        nameLabel.text = viewModel.value
    }
    
    @IBOutlet private weak var nameLabel: UILabel!
}
